package com.ailesson.video.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ailesson.common.reply.PageResult;
import com.ailesson.video.entity.CourseCollectEntity;
import com.ailesson.video.model.req.CourseCollectQueryReq;
import com.ailesson.video.model.req.CourseCollectReq;
import com.ailesson.video.model.reply.CourseCollectReply;

/**
 * 课程收藏
 *
 * @author mac
 * @email mac@gmail.com
 * @date 2024-10-02 10:31:00
 */
public interface CourseCollectService extends IService<CourseCollectEntity> {

    /**
     * 分页查询
     * @param params
     * @return
     */
    PageResult queryPage(CourseCollectQueryReq params);

    /**
     * 查询信息
     * @param id
     * @return
     */
    CourseCollectReply info(Long id);

    /**
     * 更新信息
     * @param courseCollect
     */
    void update(CourseCollectReq courseCollect);

    /**
     * 新增
     * @param courseCollect
     */
    Long add(CourseCollectReq courseCollect);
}

